package com.itheima.mapper;

import com.itheima.common.domain.Stock4EvrDayDomain;
import com.itheima.common.domain.Stock4MinuteDomain;
import com.itheima.common.domain.StockUpdownDomain;
import com.itheima.pojo.po.StockRtInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
* @author Administrator
* @description 针对表【stock_rt_info(个股详情信息表)】的数据库操作Mapper
* @createDate 2022-05-23 21:13:37
* @Entity com.itheima.pojo.po.StockRtInfo
*/
public interface StockRtInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockRtInfo record);

    int insertSelective(StockRtInfo record);

    StockRtInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockRtInfo record);

    int updateByPrimaryKey(StockRtInfo record);

    List<StockUpdownDomain> stockIncreaseLimit(@Param("curTime") Date curTime);

    List<StockUpdownDomain> stockAll();

    List<Map> upDownSelect(@Param("avlDate") String curTimeStr, @Param("openDate") String openTimeStr, @Param("flag") int i);

    List<Map> stockUpDownScope(@Param("curTime") Date curTime);

    List<Stock4MinuteDomain> stockScreenTimeSharing(@Param("stockCode") String stockCode, @Param("startDate") Date pre20Days, @Param("endDate") Date curTime);

    List<Stock4EvrDayDomain> stockScreenDkLine(@Param("stockCode") String code, @Param("beginDate") Date pre20Day, @Param("endDate") Date curTime);

    void insertBatch(@Param("list") List infos);
}
